package touhou.utils;

import java.awt.Canvas;
//import java.util.Vector;

import touhou.entity.Bullet;

/**
 * Factory de Bullet.
 */
public class BulletFactory {

	private static BulletFactory self = null;

	Canvas canvas;
	public static final int RENDERING_SIZE = 16;

	private BulletFactory(Canvas canvas) {
		this.canvas = canvas;
	}

	public static BulletFactory getInstance(Canvas canvas) {
		if (self == null)
			self = new BulletFactory(canvas);
		return self;
	}

	public Bullet createBullet() {
		Bullet bullet = new Bullet(canvas);
		return bullet;
	}
}
